<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 团购信息从表
 * @ author: zuorenci
 * @ email: 904725327@qq.com
 * @ date: 2017/10/24 21:01
 */
class NoticeInfo extends Model
{
    protected $table = 'notice_info';

    public $timestamps = false;

    protected $fillable = [
        'id', //主键ID
        'notice_id', //标题
        'front_show', //前端展现样式
        'later_show', //后台展示样式
        'is_show', //1为显示 2为显示
        'order', //排序
    ];
    //与活动表关联
    public function NoticeAttr()
    {
        return $this->hasOne('App\\Models\\NoticeAttr', 'notice_info_id', 'id');
    }
}
